package com.sne.airways.basecore.utils;

import com.sne.airways.basecore.constants.StatusCode;

/**
 * Created with IntelliJ IDEA.
 * User: skyline{http://my.oschina.net/skyline520}
 * Date: 12-11-27
 * Time: 下午3:31
 * To change this template use File | Settings | File Templates.
 */
public class ErrorMessage {
    private String statusCode; //错误状态码
    private String errorMessage;//错误描述

    public ErrorMessage() {
    }

    public ErrorMessage(StatusCode statusCode, String errorMessage) {
        this.statusCode = statusCode.getValue();
        this.errorMessage = errorMessage;
    }

    public String getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(StatusCode statusCode) {
        this.statusCode = statusCode.getKey();
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }
}
